Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use myst-nb to demo ipywidgets double render bug #1765

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gabalafou
Copy link
Collaborator

@gabalafou gabalafou commented Apr 11, 2024

This PR creates a demo of a bug (#1766). It is not meant to be merged in.

@gabalafou
Copy link
Collaborator Author

gabalafou commented Apr 11, 2024

You can see the bug at the following preview URL: https://pydata-sphinx-theme--1765.org.readthedocs.build/en/1765/examples/pydata.html#ipywidget

@gabalafou
Copy link
Collaborator Author

gabalafou commented Apr 11, 2024

Just noticed on that preview URL that ipyleaflet is also rendered twice

@choldgraf
Copy link
Collaborator

I wonder if it's because those libraries are calling a display function directly, and then we are doubling that output by calling display ourselves in the cell's code?

@12rambau
Copy link
Collaborator

I guess it is but the question is how Jupyter notebook itself prevent this behaviour ?

@gabalafou
Copy link
Collaborator Author

Also, why is there no doubling with nbsphinx?

@12rambau
Copy link
Collaborator

Is it also the case if you drop our theme and use the good old alabaster ? If it's the case then the issue is on myst-nb side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants